﻿using CleanArchitecture.Core.Configuration;
using CleanArchitecture.Infrastructure.Entities;

namespace CleanArchitecture.Infrastructure.Models.Business.FileUpload
{
    public partial class FileItemModel : BaseEntityModel
    {
        /// <summary>
        /// Gets or sets the picture mime type
        /// </summary>
        public string MimeType { get; set; }

        public FileType FileType { get; set; }
        /// <summary>
        /// 设置上传文件的使用分类
        /// </summary>
        public string Category { get; set; }
        /// <summary>
        /// Gets or sets the SEO friendly filename of the picture
        /// </summary>
        public string SeoFilename { get; set; }

        /// <summary>
        /// Gets or sets the "alt" attribute for "img" HTML element. If empty, then a default rule will be used (e.g. product name)
        /// </summary>
        public string AltAttribute { get; set; }

        /// <summary>
        /// Gets or sets the "title" attribute for "img" HTML element. If empty, then a default rule will be used (e.g. product name)
        /// </summary>
        public string TitleAttribute { get; set; }

        /// <summary>
        /// Gets or sets the picture virtual path
        /// </summary>
        public string VirtualUrl { get; set; }

        public EntityEnumConfig.FileStoreType StoreType { get; set; }

        public int DownloadCount { get; set; }

        public string LinkUrl { get; set; }
    }
}
